{% extends "::layoutSimple.html.twig" %}
{% block login %}
<div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">{% trans %}login{% endtrans %}</h3>
                    </div>
                    <div class="panel-body">
                        {% if error %}
                            <div>{{ error.message }}</div> 
                        {% endif %}
                        <form role="form" action="{{ path('login_check') }}" method="post">
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="{% trans %}mail{% endtrans %}" type="text" autofocus id="username" name="_username" value="{{ last_username }}">
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="{% trans %}password{% endtrans %}" id="password" name="_password" type="password" value="">
                                </div>
                                <div class="checkbox">
                                    <label>
                                        <input id="remember_me" name="_remember_me" type="checkbox" value="Remember Me">{% trans %}remember.me{% endtrans %}
                                    </label>
                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                                <button class="btn btn-lg btn-success btn-block">{% trans %}login{% endtrans %}</button>
                            </fieldset>
                        </form>
                        <a href="{{path('usuario_registro')}}">{%trans%}registrarse{%endtrans%}</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}